@echo off
set syncLibProjectRoot=c:\Documents and Settings\t2ladmin\My Documents\Projects\2008\OS3\SyncLib\
set syncLibOldClasspath=%CLASSPATH%
set CLASSPATH=%CLASSPATH%;%syncLibProjectRoot%dependency\antlr-runtime-3.0.1.jar;%syncLibProjectRoot%dependency\aspectjrt.jar;%syncLibProjectRoot%bin;.

echo converting to Java...
java -ea ac.jp.u_tokyo.SyncLib.language2.Compiler %1 __temp__
if %errorlevel% neq 0 goto end

echo compiling Java...
javac __temp__.java
if %errorlevel% neq 0 goto end

echo starting...
java -ea __temp__
:end
del __temp__.java
del __temp__.class
set CLASSPATH=%syncLibOldClasspath%
set syncLibProjectRoot=
set syncLibOldClasspath=
